import * as api from '.';

const statisticApi = {

  counts: async () => {
    return api.GET('/api/statistic/counts',  null, null);
  },

  taskCounts: async (startDate: string, endDate: string) => {
    const data = {
      startDate,
      endDate
    };
    return api.GET('/api/statistic/taskCounts',  null, data);
  }

};

export default statisticApi;
